//
//  DianJoyAdWallParamController.h
//  DianJoySDK
//
//  Created by Noodles Wong on 5/30/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol DianJoyAdWallParamControllerDelegate <NSObject>


@required
- (NSString*) appId;   //请注意：每一个用到参数控制器的Delegate都要获取appId
@optional
- (void) spendPointSucceed: (int) newBalance withCurrency:(NSString*) centType;
- (void) failToSpendPoint;
- (void) givePointSucceed: (int) newBalance withCurrency:(NSString*) centType;
- (void) failToGivePoint;
- (void) getUserBalanceSucceed: (int) userBalance withCurrency:(NSString*) centType;
- (void) failToGetUserBalance;
- (void) getParamSucceed:(NSString*) value;
- (void) failToGetParam;
- (void) afterWallHidden;
- (NSString*) userId; //请注意：如果开发者自己有自己的积分管理系统，在给用户加分需要通知自己的server，则要提供userId
@end

@interface DianJoyAdWallParamController : NSObject

+ (void) setDelegate:(id<DianJoyAdWallParamControllerDelegate>) _delegate;

+ (void) initSession;

+ (id) sharedParamController;

+ (void) spendPointNotify: (int)spendPoints;

+ (void) givePointNotify: (int)givePoint;

+ (void) getUserBalance;

+ (void) getParamDefineByYourself:(NSString*) key;

@end
